import requests


class request_Util:

    def __init__(self, header={
        'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36'}):
        self.header = header

    def edit_header(self, header):
        self.header = header

    def get(self, url=None, data=None, params=None):
        response = requests.get(url=url, params=params, data=data, headers=self.header)
        return response

    def post(self, url=None, data=None, params=None, json=None):
        response = requests.post(url=url, data=data, json=json, params=params, headers=self.header)
        return response

    def options(self, url=None, data=None, params=None):
        response = requests.options(url=url, data=data, params=params, headers=self.header)
        return response

    def delete(self, url=None, data=None, params=None):
        response = requests.delete(url=url, data=data, params=params, headers=self.header)
        return response
